<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>指尖上行</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/css.css">
<link rel="stylesheet" href="../../css/PowerLevelingAccount.css">
<link rel="stylesheet" href="../../../bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../bower_components/Ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="../../../dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="../../../dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="../../../bower_components/jvectormap/jquery-jvectormap.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini"  data-treeview="3" data-treeview-menu="3">
<div class="wrapper">
  <header class="main-header"> <a class="logo"> <span class="logo-mini"><b>指</b></span> <span class="logo-lg"><img src="../../img/logo.png"/></span></a>
    <nav class="navbar navbar-static-top"><a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"></a></nav>
  </header>
  <aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
      </ul>
    </section>
  </aside>
  <div class="content-wrapper">
    <section class="content-search">
      <div class="form-group">
        <label>代练名称</label>
        <input type="text" class="form-control w140" placeholder="代练名称" id="leveling_name">
      </div>
      <div class="form-group">
        <label>代练账号</label>
        <input type="text" class="form-control w140" placeholder="代练账号" id="leveling_account">
      </div>
      <div class="form-group">
        <label>代练状态</label>
        <select class="form-control w140" id="status">
          <option value="0">全部</option>
          <option value="1">正常</option>
          <option value="2">禁止登录</option>
          <option value="3">禁言</option>
          <option value="5">列表不可见</option>
          <option value="6">禁止接单</option>
        </select>
      </div>
      <div class="form-group">
        <label>注册时间</label>
        <div class="input-group date w140 fl">
          <div class="input-group-addon"> <i class="fa fa-calendar"></i> </div>
          <input type="text" class="form-control pull-right" id="datepicker">
        </div>
        <span>到</span>
        <div class="input-group date w140 fl">
          <div class="input-group-addon"> <i class="fa fa-calendar"></i> </div>
          <input type="text" class="form-control pull-right" id="datepicker2">
        </div>
      </div>
      <div class="form-group">
        <button type="button" class="btn btn-primary btnsearch">搜索</button>
      </div>
    </section>
    <section class="content-header">
      <button type="button" class="btn btn-primary Disqualified"  data-toggle="modal" data-target="#modal-Disqualified" >解除资格</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="5">列表不显示</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="1">列表显示</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="6">禁止接单</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="1">解禁接单</button>
    </section>
    <!-- 置顶 -->
    <div class="modal fade" id="modal-istop" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">置顶</h4>
          </div>
          <div class="modal-body">
            <div class="box box-primary">
              <div class="box-body">
                <h4>置顶</h4>
                <div class="form-group">
                  <p class="lems">
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_0">
                    王者荣耀 <br>
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_1">
                    绝地求生 <br>
                  </p>
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnistop">提交</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 分配代练资格 -->
    <div class="modal fade" id="modal-distribution" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">分配代练资格</h4>
          </div>
          <div class="modal-body">
            <div class="box box-primary">
              <div class="box-body">
                <h4>分配权限</h4>
                <div class="form-group">
                  <label>代练类型</label>
                  <select class="form-control w140">
                    <option value="1">个人</option>
                    <option value="2">工作室</option>
                  </select>
                </div>
                <div class="form-group">
                  <label>游戏类型</label>
                  <input name="" type="checkbox" value="">
                  王者荣耀
                  <input name="" type="checkbox" value="">
                  绝地求生 </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btndistribution">提交</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 解除资格 -->
    <div class="modal fade" id="modal-Disqualified" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认解除资格</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnDisqualified">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 解绑邮箱 -->
    <div class="modal fade" id="modal-email" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认解绑邮箱</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnemail">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 解绑手机 -->
    <div class="modal fade" id="modal-phone" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认解绑手机</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnphone">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 修改状态 -->
    <div class="modal fade" id="modal-status" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body"></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnstatus">确认</button>
          </div>
        </div>
      </div>
    </div>
    <section class="content">
      <div class="box">
        <div class="box-header">
          <h3 class="box-title">代练账号列表</h3>
        </div>
        <div class="box-body">
          <table id="example1" class="table table-bordered table-striped">
          </table>
          <div class="paginationDiv">
            <ul class="pagination">
              <li class="prev"><a>上一页</a></li>
              <li class="next"><a>下一页</a></li>
            </ul>
            <input type="text" value="1" class="form-control curpage"/>
            <button type="button" class="btn btn-default gopage">跳转</button>
            <span class="pageinfo"></span> </div>
        </div>
      </div>
    </section>
  </div>
</div>
<script type="text/html" id="datalist">
	<thead>
	  <tr role="row">
		<th><input type="checkbox" class="allcheck"></th>
		<th>代练头像</th>
		<th>代练ID</th>
		<th>代练名称</th>
		<!--<th>代练账号</th>-->
		<th>代练邮箱</th>
		<th>审核通过时间</th>
		<th>代练类型</th>
		<th>代练简介</th>
		<th>是否置顶</th>
		<th>代练状态</th>
		<th>操作</th>
	  </tr>
    </thead>
	<tbody>
	<%for(var i = 0,len= dataset.length;i < len;i++){%>
	  <tr role="row">
		<td><input type="checkbox" name="items" value="<%= dataset[i].id%>"></td>
		<td><img src="<%= dataset[i].levelingHead==null?'../../img/defeat.png':dataset[i].levelingHead%>" width="80px"/></td>
		<td><%= dataset[i].levelingId%></td>
		<!--<td><%= dataset[i].levelingName%></td>-->
		<td><%= dataset[i].levelingName%></td>
		<td><%= dataset[i].levelingEmail==null?"-":dataset[i].levelingEmail%></td>
		<td><%= dataset[i].createDate%></td>
		<td><%= dataset[i].leveling_type==1?"个人":"工作室"%></td>
		<td title="<%= dataset[i].signature==null?'-':dataset[i].signature%>"><%= dataset[i].signature==null?"-":(dataset[i].signature).substring(0,20)%></td>
		<td><%= dataset[i].lems[0]!=null&&dataset[i].lems[0].isTop==1?dataset[i].lems[0].leveling_gametype==1?"王者荣耀置顶":"绝地求生置顶":"-"%><br/>
		<%= dataset[i].lems[1]!=null&&dataset[i].lems[1].isTop==1?dataset[i].lems[1].leveling_gametype==1?"王者荣耀置顶":"绝地求生置顶":"-"%></td>
		<td><%= dataset[i].status!=null?dataset[i].status:'-'%></td>
		<td>
		  <button type="button" class="btn  btn-info btn-xs istop" data-toggle="modal" data-target="#modal-istop" data-id="<%= dataset[i].id%>" data-lems="">游戏置顶</button></td>
      </tr>
	<%}%>
    </tbody>
</script> 
<script src="../../../bower_components/jquery/dist/jquery.min.js"></script> 
<script src="../../../bower_components/jquery-ui/jquery-ui.min.js"></script> 
<script src="../../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> 
<script src="../../../bower_components/raphael/raphael.min.js"></script> 
<script src="../../../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script> 
<script src="../../../bower_components/jquery-knob/dist/jquery.knob.min.js"></script> 
<script src="../../../bower_components/moment/min/moment.min.js"></script> 
<script src="../../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script> 
<script src="../../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script> 
<script src="../../../bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script> 
<script src="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script> 
<script src="../../../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> 
<script src="../../../bower_components/fastclick/lib/fastclick.js"></script> 
<script src="../../../dist/js/adminlte.min.js"></script> 
<script src="../../js/template-web.js"></script> 
<script src="../../../bower_components/ckeditor/ckeditor.js"></script> 
<script src="../../js/requestOrigin.js"></script>
<script src="../../js/js.js"></script> 
<script src="../../js/PowerLevelingAccount.js"></script> 
<script>
  $(function () {
	$('#datepicker').datepicker({format:"yyyy-mm-dd",language:"zh-CN",autoclose: true,todayHighlight:true});
	$('#datepicker2').datepicker({format:"yyyy-mm-dd",language:"zh-CN",autoclose: true,todayHighlight:true});
  })
</script>
</body>
</html>
